/* 
 * Copyright (c) 2012 Christoph Mueller <ruunhb@googlemail.com>
 * 
 * Crystal is free software: you can redistribute it and/or modify
 * it under the terms of the Lesser GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Crystal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * Lesser GNU General Public License for more details.
 *
 * You should have received a copy of the Lesser GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef CRYSTAL_UNITTEST_H
#define CRYSTAL_UNITTEST_H

#include "base.h"
#include <assert.h>

typedef void (*lq_modulechecker)(const_pointer data);

void lq_unittest_run(const char* desc, lq_modulechecker handler, const_pointer data, unsigned int timeout);

void lq_unittest_initialize(int argc, char** argv);

void lq_unittest_finalize(void);

#endif // CRYSTAL_UNITTEST_H
